
import { createRouter, createWebHashHistory } from 'vue-router';
import { createApp } from 'vue';
import Blog from '@/components/views/Blog.vue';
import HomeStay from '@/components/views/HomeStay.vue';

const routes = [
  {
    path: '/',
    name: 'about',
    component: () => import('../components/views/About.vue') 
  },
  {
    path: '/blog',
    name: 'Blog',
    component: Blog
  },
//   {
//     path: '/courses',
//     name: 'Courses',
//     component: Courses
//   },
{
  path: '/b-and-b',
  name: 'HomeStay',
  component: HomeStay
},
];

const router = createRouter({  
    history: createWebHashHistory(),  
    routes,  
  });  
    
export default router;